package wzh.crm.ui.contact;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import wzh.crm.R;
import wzh.crm.bl.CURDBL;
import wzh.crm.bl.BL;
import wzh.crm.ui.AllAndMineListActivity;
import wzh.crm.ui.DisplayListView;
import wzh.crm.vo.ContactVo;

/**
 * Created by wangzehao on 2016/5/23.
 */
public class ContactListActivity extends AllAndMineListActivity<ContactVo> {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("联系人");
        Button all= (Button) findViewById(R.id.button_all);
        Button mine= (Button) findViewById(R.id.button_mine);
        all.setVisibility(View.GONE);
        mine.setVisibility(View.GONE);
    }

    @Override
    protected DisplayListView<ContactVo> buildList() {
        return new ContactList(this,null);
    }

    @Override
    protected CURDBL<ContactVo> setInitBl() {
        return BL.contactBL();
    }

    public void add(View view){
        Intent i=new Intent(this,ContactDetailsActivity.class);
        startActivity(i);
    }
}
